package com.wyvoid.forum.service;

import java.util.List;

import com.wyvoid.forum.domain.Forum;
import org.springframework.transaction.annotation.Transactional;


/**
 * 论坛模块业务处理接口
 * 
 * @author 51void
 * @link www.51void.com
 */
@Transactional
public interface IForumService {
    List<Forum> getForums();

    List<Forum> getGroupForums(long groupId);

    List<Forum> getForums(long parentId);

    void createForum(Forum forum);

    void updateForum(Forum forum);

    Forum getGroupForum(long forumId);

    Forum getForum(long forumId);

    void closeForum(long fid);

    List<Forum> getOpenedForums();

    List getValidForums(long parentForumId);

    void openForum(long fid);
}
